package jp.melodroid.no4.list1;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.app.ListActivity;

public class list1 extends ListActivity
{
    String[] LIST_ITEMS = new String[] {
	"list1",
	"list2",
	"list3",
	"list4",
	"list5",
    };

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
	//setContentView(R.layout.main);

	String[] listContent;
	int textViewLayoutId;

	//textViewLayoutId = R.layout.list_item;
	textViewLayoutId = android.R.layout.simple_list_item_1;

	//listContent = LIST_ITEMS;
	listContent =  getResources().getStringArray(R.array.list_items_test);

	ArrayAdapter<String> lists = new ArrayAdapter<String>(this,textViewLayoutId,listContent);
	setListAdapter(lists);

    }
}
